package com.xkdx.guangguang.presistence.uploaddevicetoken;

import java.util.HashMap;

import android.content.Context;

import com.xkdx.caipiao.HomePageActivity;
import com.xkdx.guangguang.HomeActivity;
import com.xkdx.guangguang.module.network.AbsModule;
import com.xkdx.guangguang.module.network.HttpTask;
import com.xkdx.guangguang.module.network.JsonHttpRequest;

public class UpLoadDeviceTokenPresistence extends HttpTask {

	public UpLoadDeviceTokenPresistence(Context context) {
		this.context = context;
		mUseCache = false;
		requestInstent = new JsonHttpRequest();

	}

	@Override
	protected void onPostExecute(HashMap<String, AbsModule> result) {
		if (context != null) {
			if(context instanceof HomeActivity){
				((HomeActivity) context).showLoaded(result);
			}else if(context instanceof HomePageActivity){
				((HomePageActivity) context).showLoaded(result);
			}
		}
	}
}
